package io.xxx.xbutler.core.alarm;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AlarmConfig {

    @Bean
    @ConditionalOnMissingBean(Alarm.class)
    public Alarm alarm() {
        return new ConsoleAlarm();
    }
}
